package cn.yotta.user.core.server.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author yotta
 * @date 2023/4/11 14:33
 * token过期时间配置
 */
@Data
@ConfigurationProperties(prefix = "yotta.user.login.token.expire-time")
public class LoginTokenExpireTimeProperties {

    /**
     * pc端Token过期时间，单位秒，默认为1天
     */
    private Integer pc = 60 * 60 * 24;

    /**
     * app端过期时间：默认一月
     */
    private Integer app = 60 * 60 * 24 * 30;
}
